import { createI18n } from 'vue-i18n'
import type { I18nOptions } from 'vue-i18n'

const messages = {
  zh: {
    nav: {
      home: '首页',
      about: '关于我们',
      products: '产品展示',
      cases: '案例中心',
      news: '新闻咨询',
      contact: '联系我们'
    },
    company: {
      name: '深圳市晶鸿泰科技有限公司'
    }
  },
  en: {
    nav: {
      home: 'Home',
      about: 'About Us',
      products: 'Products',
      cases: 'Cases',
      news: 'News',
      contact: 'Contact Us'
    },
    company: {
      name: 'Shenzhen Jing Hong Tai Technology Co., Ltd.'
    }
  }
}

const options: I18nOptions = {
  legacy: false,
  locale: 'zh',
  fallbackLocale: 'zh',
  messages
}

const i18n = createI18n(options)

export default i18n